import pygame
import pygame.sprite


class item(pygame.sprite.Sprite):
    def __init__(self,name,image,pos=(0,0),hide=None,style=0):
        super().__init__()
        #设置状态
        self.style = style
        self.name = name
        self.hideImage = hide
        self.image = image
        self.rect = self.image.get_rect(center=pos)
        self.pos = pos





